    <!--顶部主菜单start-->
    <div id="wrap">
        <div id="nav">
            <!--{if $_G['setting']['topmenu']}-->
            <ul>
                <!--{loop $_G['setting']['topmenu'] $key $val}-->
                {eval $set_ajax_url_href = set_ajax_url_href($val[url]);}
                <li <!--{if (!empty($set_ajax_url_href) && strpos($set_ajax_url_href,'vide') &&  $set_ajax_url_href==$val[url]) || empty($_SERVER['QUERY_STRING'])}-->class="ui-state-active"<!--{/if}-->><a href="{$set_ajax_url_href}" target="_self" style="min-height: 0px;background: none;">{$val['name_var']}</a></li>
                <!--{/loop}-->
            </ul>
            <!--{/if}-->
        </div>
        <div id="nav2_wrap" style="display:none">
            <div id="nav2">
                <!--{if $_G['setting']['topmenu']}-->
                <ul>
                    <!--{loop $_G['setting']['topmenu'] $key $val}-->
                    <li><a href="" target="_self" style="min-height: 0px;">{$val['name_var']}</a></li>
                    <!--{/loop}-->
                </ul>
                <span class="bar"></span>
                <!--{/if}-->
            </div>
            <a id="arrow"><span>&gt;</span></a>
        </div>
    </div>
    <!--顶部主菜单end-->